import request from '@/utils/request.ts'

export default {
    getLast(heatNo) {
        return request({
            url: '/res/experiment/getLast',
            method: 'get',
            params: {heatNo: heatNo},

        })
    },
    add(data) {
        return request({
            url: '/res/experiment/add',
            method: 'post',
            data,
        })
    },
    getSept(data) {
        return request({
            url: '/res/experiment/getSept',
            method: 'post',
            data,
        })
    },
    getByTemplateId(data) {
        return request({
            url: '/res/experiment/getByTemplateId',
            method: 'post',
            data,
        })
    },
    exportExecl(query) {
        return request({
            url: '/res/experiment/exportExecl',
            method: 'get',
            params: query,
            responseType: 'blob'
        })
    },
    list(query) {
        return request({
            url: '/res/experiment/list?',
            method: 'get',
            params: query,
        })
    },
}
